//
//  SXSPopImageVC.m
//  Animation
//
//  Created by Angela on 16/9/23.
//  Copyright © 2016年 Angela. All rights reserved.
//

#import "SXSPopImageVC.h"
#import "SXSPopImage.h"
@interface SXSPopImageVC ()
@property (strong, nonatomic) UIView *contentView;
@end

@implementation SXSPopImageVC

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor=[UIColor whiteColor];
    [self popViewShow];
}
#pragma mark-popView弹出视图
- (void)popViewShow {
    _contentView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 200, 300)];
    _contentView.backgroundColor = [UIColor clearColor];
    UIImageView *imageV = [[UIImageView alloc]initWithFrame:_contentView.bounds];
    imageV.image = [UIImage imageNamed:@"jei"];
    [_contentView addSubview:imageV];
    [SXSPopImage sharedInstance].shadeBackgroundType = ShadeBackGroundTypeSolid;
    [SXSPopImage sharedInstance].closeButtonType = ButtonPositionTypeRigth;
    [[SXSPopImage sharedInstance] showWithPresentView:_contentView animated:YES];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
